#include <iostream>
#include <thread>
#include <string>
#include <future>
int add(int x,int y)
{
    return x + y;
}
int main()
{
    auto res = std::async(std::launch::async,add,10,20);
    std::cout<< res.get()<<std::endl;
    return 0;
}